package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (Orders)表实体类
 *
 * @author makejava
 * @since 2020-12-01 22:17:52
 */
@Data
@TableName("orders")
public class Orders extends Model<Orders> {
    //订单主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //下订单手机号
    private String phone;
    //接订单技师
    private Integer mid;
    //订单纬度
    private String lng;
    //订单经度
    private String lat;
    //下订单时间
    private Date createtime;
    //接单时间
    private Date updtetime;
    //完成订单时间
    private Date endtime;
    //救援内容
    private String contents;
    //状态：0刚下单，1已接单，2已到达正在修，3已完成，4已评价
    private String status;
    //救援地址
    private String address;
    //附带内容
    private String attached;
    //金额
    private String cost;
    //用户实体类
    private Customer customer;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}